package cn.edu.nju.ws.sview.reasoning.schema;

/**
 * Myclass contains innerclass and origin class
 * @author Saisai Gong
 *
 */
public class MyClass {
	private boolean  isInner;
	private int classID;
	public MyClass(boolean isInner,int classID){
		this.isInner = isInner;
		this.classID = classID;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + classID;
		result = prime * result + (isInner ? 1231 : 1237);
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MyClass other = (MyClass) obj;
		if (classID != other.classID)
			return false;
		if (isInner != other.isInner)
			return false;
		return true;
	}
	
	public boolean isInner(){
		return this.isInner;
	}
	
	public int getClassID(){
		return this.classID;
	}
}
